Constructing DLOG/DITL templates for Type 4 of ShowDialog XCMD is only slightly more involved than for the others.
Constructing the popup menu:
The popup menu consists of two DITL items, which MUST be items 5 and 6.
They are:
DITL item #5: an ENABLED useritem. This will be your popup "hot spot."
DITL item #6: DISABLED static text. This will be your popup menu title. You cannot modify the popup menu title on the fly. Enter in the text string in the DITL template.
These two items can be as LONG as you want, but both MUST be 17 pixels high. This is so that the popup will be positioned correctly on top of the hot spot and the title will hilite correctly.
The popup menu title (DITL item #6) MUST be positioned TO THE LEFT of the hot spot (item #5). They should touch each other by ONE pixel (this is for cosmetic reasons only).
-- part contents for background part 3
----- text -----
ShowDialog XCMD Type 4 (continued...)
-- part contents for background part 7
----- text -----
19
-- part contents for card part 4
----- text -----
When designing your DLOG template keep in mind that the LENGTH of the hot spot will be determined by the longest item in the menu list. If you suspect that your menu lists may contain long words then leave enough space on your template so that the hot spot won't "run into" any other DITL item.
When the dialog is actually displayed, the hot spot will appear as a shadow box containing the currently selected menu item.